package io.finer.erp.jeecg.bas.mapper;

import java.util.List;

import io.finer.erp.jeecg.bas.dto.ZrkOrderProductDTO;
import io.finer.erp.jeecg.bas.entity.ZrkOrderProduct;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 商城订单产品明细表
 * @Author: jeecg-boot
 * @Date:   2020-08-22
 * @Version: V1.0
 */
public interface ZrkOrderProductMapper extends BaseMapper<ZrkOrderProduct> {

	public boolean deleteByMainId(@Param("mainId") String mainId);
    
	public List<ZrkOrderProduct> selectByMainId(@Param("mainId") String mainId);
	
	public List<ZrkOrderProductDTO> selectChildByMainId(@Param("id")String id);
	
	public List<ZrkOrderProduct> getLatestByCustom(@Param("")String customId, @Param("")String categoryId);

	public List<ZrkOrderProduct> getByCustomerId(@Param("customerId")String customerId);
	
	public List<ZrkOrderProduct> getByCustomerId2(@Param("customerId")String customerId);

	public List<ZrkOrderProduct> getCustomerNotOutCompleteProduct(@Param("customerId")String customerId);
}
